package com.zp.crm.dao.MarketingDao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.zp.crm.entity.Marketing.MarketingEntity;

public interface MarketingDao {

	int selectByCount();

	List<MarketingEntity> selectByList(@Param(value="page")int PageIndex, @Param(value="size")int size);

	int deleteByKeyCode(@Param(value="code")String code);

	List<MarketingEntity> selectCreateByList(@Param(value="name")String name, @Param(value="mar")String mar, @Param(value="phoneName")String phoneName,@Param(value="page") int pageIndex, @Param(value="size")int size);

	int selectCreateCount(@Param(value="name")String name, @Param(value="mar")String mar,@Param(value="phoneName")String phoneName);

	MarketingEntity selectEditCreateBycode(@Param(value="code")String code);

	int inset(MarketingEntity entity);

	int MarEdit(MarketingEntity entity);

	int MarZdEdit(@Param(value="code")String code, @Param(value="name")String name, @Param(value="stuts")String stuts,@Param(value="time")Date date);

	List<MarketingEntity> selectByKeyUserTrueName(@Param(value="name")String userTrueName,@Param(value="page") int pageIndex,@Param(value="size")int size);

	int selectByKeyUserTrueNameCount(@Param(value="name")String name);

	int LoadUserSelectCreateMarListCount(@Param(value="uname")String userTrueName,@Param(value="name") String name,@Param(value="mar") String mar, @Param(value="phoneName")String phoneName);

	List<MarketingEntity> LoadUserSelectCreateMarList(@Param(value="uname")String userTrueName, @Param(value="page")int pageIndex, @Param(value="size")int size, @Param(value="name")String name,
			@Param(value="mar")String mar, @Param(value="phoneName")String phoneName);

	int DevelopUpStuts(@Param(value="code")String code, @Param(value="stuts")String stuts);

}
